package com.tianyuan.lims.utils;

import org.apache.commons.lang3.StringUtils;

public class ApprovalFlowConstants {
    /**
     * 此流程废弃 拟替换为 baogao_zhikong
     *
     * @see ApprovalFlowConstants#baogao_zhikong
     */
    @Deprecated
    public static final String baogao_old_zhikong = "zhikongjiema";

    public static final String baogao_databianzhi = "baogao_databianzhi";
    //数据复核
    public static final String baogao_datafuhe = "baogao_datafuhe";
    //数据审核
    public static final String baogao_datashenhe = "baogao_datashenhe";

    //数据审核
    public static final String baogao_zhikong = "baogao_zhikong";

    public static final String baogao_bianzhi = "baogao_bianzhi";

    public static final String baogao_fuhe = "baogao_fuhe";
    public static final String baogao_shenhe = "baogao_shenhe";
    //授权签发审核
    public static final String baogao_qianshen = "baogao_qianshen";

    public static final String baogao_xiuding = "baogao_xiuding";
    public static final String baogao_xiuhe = "baogao_xiuhe";

    public static final String baogao_qianfa = "baogao_qianfa";

    public static final String ysjl_zhikongfuhe = "ysjl_zhikongfuhe";
    public static final String ysjl_zhikong = "ysjl_zhikong";
    public static final String ysjl_fuhe = "ysjl_fuhe";
    public static final String ysjl_shenhe = "ysjl_shenhe";
    public static final String ysjl_kaishi = "ysjl_kaishi";
    public static final String ysjl_fenxi = "ysjl_fenxi";
    public static final String jieshu = "jieshu";

    public static final String ysjl_chaxun = "ysjl_chaxun";
    public static final String FlowDirection_After = "after";

    public static boolean isYuanshijiluFuheFlow(String flowKey) {
        return StringUtils.equalsIgnoreCase(flowKey, ysjl_fuhe);
    }

    public static boolean isYuanshijiluShenheFlow(String flowKey) {
        return StringUtils.equalsIgnoreCase(flowKey, ysjl_shenhe);
    }

    public static boolean isYuanshijiluZhikongFuheFlow(String flowKey) {
        return StringUtils.equalsIgnoreCase(flowKey, ysjl_zhikongfuhe);
    }

    public static boolean isYuanshijiluZhikongFlow(String flowKey) {
        return StringUtils.equalsIgnoreCase(flowKey, ysjl_zhikong);
    }

    public static boolean isYuanshijiluChaXunFlow(String flowKey) {
        return StringUtils.equalsIgnoreCase(flowKey, ysjl_chaxun);
    }

    public static boolean isBaogaoBianzhiFlow(String flowKey) {
        return StringUtils.equalsIgnoreCase(flowKey, baogao_bianzhi);
    }

    public static boolean isBaogaoFuHeFlow(String flowKey) {
        return StringUtils.equalsIgnoreCase(flowKey, baogao_fuhe);
    }

    public static boolean isBaogaoShenHeFlow(String flowKey) {
        return StringUtils.equalsIgnoreCase(flowKey, baogao_shenhe);
    }

    public static boolean isBaogaoQianFaFlow(String flowKey) {
        return StringUtils.equalsIgnoreCase(flowKey, baogao_qianfa);
    }

    public static final int YFX_CODE = 15;

    public static class Flowtype {
        /**
         * 原始记录
         */
        public static final byte Ysjl = 20;

        /**
         * 报告
         */
        public static final byte Baogao = 30;

        /**
         * 报告开始
         */
        public static final byte BaogaoStart = 31;
    }

    //报告编辑模式
    public static class BaogaoMode {
        //不上传报告
        public static final byte NONE = 0;
        //需要创建报告
        public static final byte CREATE = 1;
        //可以编辑报告
        public static final byte EDIT = 2;
        //可上传
        public static final byte CanCreate = 3;
    }

    //报告编辑模式
    public static class ReportEditMode {
        //0不处理
        public static final byte NONE = 0;
        //1编辑模式
        public static final byte EDIT = 1;
        //2修订模式
        public static final byte REVISE = 2;
    }
}
